
public class CommericalVehicle extends Vehicle{
	private int loadCapacity;
	private int numPassenger;
	
	public CommericalVehicle(String rego, String make, String model, String ownername,
			  String address, Boolean status, int load, int passengers) {
		super(rego, make, model, ownername, address, status);
		this.loadCapacity = load;
		this.numPassenger = passengers;
	}
	public CommericalVehicle(String rego, String make, String model, String ownername,
			  String address, String status, int load, int passengers) {
		super(rego, make, model, ownername, address, status);
		this.loadCapacity = load;
		this.numPassenger = passengers;
	}
	public String toString() {
		return"Commercial [regoNumber=" + regNum + ", make=" + makeDescription
				 + ", description=" + modelDescription + ", ownerName=" + regOwnerName
				 + ", ownerAddress=" + regOwnerAdderss + ", registered="
				 + regStatus + "]";

	}
	public double calculateRego() {
		double fee = 0.28 * loadCapacity + 134 + (double)numPassenger * 10 * 41;
		return fee;
	}
	public int  GetloadCapacity() {
		return loadCapacity;
	}
	public int GetnumPassenger() {
		return numPassenger;
	}
}
